package cola.rh.service;

import cola.rh.entity.BaseEntity;
import org.springframework.data.domain.Page;

/**
 * @ClassName BaseService
 * @Author Cola
 * @DATE 2023/4/7 8:40 PM
 * @Description BaseService TODO
 * @Version 1.0
 */
public interface BaseService<T extends BaseEntity> {


    T findById(Long id);

    void save(T entity);

    void updateById(T entity);

    void deleteById(Long id);

    Page<T> findAll(Integer page, Integer size, String sort, T condition);
}
